package com.yyy.startup;

import com.yyy.gui.frame.MainFrame;
import com.yyy.gui.pannel.MainPanel;
import com.yyy.gui.pannel.SpendPanel;
import com.yyy.util.GUIUtil;

import javax.swing.*;
import java.lang.reflect.InvocationTargetException;

/**
 * @Author：yyy
 * @Package：com.yyy.startup
 * @Project：HuTuBiill
 * @name：Bootstrap
 * @Date：2024/11/12 22:39
 * @Filename：Bootstrap
 */
public class Bootstrap {
    public static void main(String[] args) throws InterruptedException, InvocationTargetException {
        GUIUtil.useLNF(); //设置皮肤，全局享用
        SwingUtilities.invokeAndWait(new Runnable() {//启动图形化界面
            @Override
            public void run() {
                MainFrame.instace.setVisible(true);//显示主窗体
                MainPanel.instance.workingPanel.show(SpendPanel.instance);
            }
        });
    }
}
